package com.heima.Controller;

import com.heima.Serivce.ApAssociateWordsService;
import com.heima.model.ES.pojos.UserSearchDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/associate")
public class ApAssociateWordsController {
    @Autowired
    ApAssociateWordsService apAssociateWordsService;

    @PostMapping("/search")
    public ResponseResult GetApAssociateWords(@RequestBody UserSearchDto userSearchDto)
    {
        return apAssociateWordsService.GetAssociateWords(userSearchDto);
    }
}
